<?php

namespace app\common\order\validate;


use think\Validate;

class OrderBanquetValidate extends Validate
{
    protected $rule = [
        'event_date' => ['require'],
        'store_id' => ['require'],
        'hall_id' => ['require'],
        'banquet_type_id' => ['require'],
        'bridegroom' => ['require'],
        'bridegroom_mobile' => ['require'],
        'bride' => ['require'],
        'bride_mobile' => ['require'],
    ];

    protected $message = [
        'event_date.require' => '请选择举办时间',
        'store_id.require' => '请选择承办酒店',
        'hall_id.require' => '请选择厅',
        'banquet_type_id.require' => '请选择宴会类型',
        'bridegroom.require' => '请录入新郎姓名',
        'bridegroom_mobile.require' => '请录入新郎手机号',
        'bridegroom_mobile.mobile' => '新郎手机号格式不正确',
        'bride.require' => '请录入新娘姓名',
        'bride_mobile.require' => '请录入新娘手机号',
        'bride_mobile.mobile' => '新娘手机号格式不正确',
    ];

    protected $scene = [
        'create' => ['store_id', 'hall_id', 'banquet_type_id', 'bridegroom', 'bridegroom_mobile', 'bride', 'bride_mobile'],
        'edit' => ['store_id', 'hall_id', 'banquet_type_id', 'bridegroom', 'bridegroom_mobile', 'bride', 'bride_mobile'],
    ];
}